package com.gmail.liulijuan.class2;

import java.util.ArrayList;

public class MyApp1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println((char)0);
		
		ArrayList al= new ArrayList();
		
		Sorter sortint= new Sorter();
		sortint.setC(new int[10]
		                     
		);
		
		Sorter sortfloat= new Sorter();
		sortfloat.setC(new int[20]);
		
		Sorter sortchar= new Sorter();
		sortchar.setC(new int[90]);
		
		al.add(sortint);
		al.add(sortfloat);
		al.add(sortchar);
		
		
		//-------------------------------------------------
		
		for (int i = 0; i < al.size(); i++) {
			if (al.get(i) instanceof Sorter){
				sortint=(Sorter)al.get(i);
			}
			if (al.get(i) instanceof Sorter){
				sortint=(Sorter)al.get(i);
			}
			if (al.get(i) instanceof Sorter){
				sortint=(Sorter)al.get(i);
			}
		}
		
		
		
		

	}

}